package com.java.Work2;
      //继承Phone类并同时实现IPlay类
public class NewPhone extends Phone implements IPlay {
    //方法的重写
    @Override
    public void sendMessage() {
        System.out.println("打电话");
    }

    @Override
    public void call() {
        System.out.println("发信息");
    }

    @Override
    public void playGame() {
        System.out.println("打游戏");
    }
}
